From: Debarshi Ray Date: Mon, 24 Oct 2016 13:20:26 +0000 (+0200) Subject: portalHelper: Address intermittent TLS failures X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~630 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=9ea8fdc1d124c5428bdb29aab929c4e2dc5e55b4;p=gnome-shell.git portalHelper: Address intermittent TLS failures Users are currently experiencing intermittent (and hard to debug) TLS errors when loading the portal authentication page. This could be caused by using http://www.gnome.org/ for our connectivity checks because it redirects to HTTPS. We can completely remove TLS from the equation by not using HTTPS. http://nmcheck.gnome.org/ is a good choice because it doesn't redirect to HTTPS and was created for NetworkManager's connectivity check. https://bugzilla.gnome.org/show_bug.cgi?id=769940 --- diff --git a/js/portalHelper/main.js b/js/portalHelper/main.js index b15dfcfd6..75daf6670 100644 --- a/js/portalHelper/main.js +++ b/js/portalHelper/main.js @@ -50,7 +50,7 @@ const PortalWindow = new Lang.Class({ this.parent({ application: application }); if (!url) { - url = 'http://www.gnome.org'; + url = 'http://nmcheck.gnome.org'; this._originalUrlWasGnome = true; } else { this._originalUrlWasGnome = false; @@ -112,12 +112,12 @@ const PortalWindow = new Lang.Class({ let uri = new Soup.URI(request.get_uri()); if (!uri.host_equal(this._uri) && this._originalUrlWasGnome) { - if (uri.get_host() == 'www.gnome.org' && this._everSeenRedirect) { + if (uri.get_host() == 'nmcheck.gnome.org' && this._everSeenRedirect) { // Yay, we got to gnome! decision.ignore(); this._doneCallback(PortalHelperResult.COMPLETED); return true; - } else if (uri.get_host() != 'www.gnome.org') { + } else if (uri.get_host() != 'nmcheck.gnome.org') { this._everSeenRedirect = true; } }